package devicemanager

func NewAutoDoor(base deviceBase) IDevice {
	return &AutoDoor{deviceBase: base}
}

//AutoDoor 自动门
type AutoDoor struct {
	deviceBase
}

func (dev *AutoDoor) OpenCMD() map[string]interface{} {
	return map[string]interface{}{"open_close": 1}
}

func (dev *AutoDoor) CloseCMD() map[string]interface{} {
	return map[string]interface{}{"open_close": 2}
}

func (dev *AutoDoor) OpenStatus() deviceStatus {
	return devStatusOpen
}

func (dev *AutoDoor) CloseStatus() deviceStatus {
	return devStatusClose
}
